package com.greyu.ysj.entity;

import java.util.ArrayList;
import java.util.List;

public class Node {
	   private User user;
       private List<Node> children = new ArrayList<Node>();  
 
       public Node() {  
       }  
 
       public Node(User user) {  
           super();  
           this.user = user; 
       }  
 
       public void addChild(Node node) {  
           this.children.add(node);  
       }  
 
       public User getUser() {  
           return user;  
       }  
 
       public void setId(User user) {  
           this.user = user;  
       }  
 
     
 
       @Override  
       public String toString() {  
           return "{user:" + user + ", children:" + children + "}";  
       }  
 
   }  

